﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class CMS_Control_ViewControlBar : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public void IntiControl(bool Show, string id, string name,string check)
    {
        if (Show)
        {
            hyEdit.Font.Size = FontUnit.Point(13);
            hyEdit.Font.Underline = false;
            hyEdit.NavigateUrl = "javascripit:void(0)";
            hyEdit.Attributes.Add("onclick", "LightBox('" + name+ "','Admin/ViewControl.aspx?action=edit&type=a&id=" + id + "','900','700','',true" + ");return false");
          
            ShowBar.Attributes.Add("style", "display:block");
        }
        else
        {
            ShowBar.Attributes.Add("style", "display:none");
        }
    }
}
